package com.nervenets.template.controller.setting.params;

import com.nervenets.general.web.params.TreeFormParams;
import com.nervenets.template.hibernate.domain.common.Dict;
import com.nervenets.template.service.DictService;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class DictFormParams extends TreeFormParams<Dict, DictService> {
    @ApiModelProperty(value = "编码", required = true)
    @NotBlank
    @Size(max = 140)
    private String code;
    @ApiModelProperty(value = "值", required = true)
    @NotBlank
    @Size(max = 140)
    private String val;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("描述")
    private String detail;
}
